Companion
object Companion
Properties
Functions
Link copied to clipboard
fun currencyFromFields(id: Int, idString: String?, name: String?, rate: Double, decimalPlaces: Int, prefix: String?, suffix: String?, tickerSymbol: String?, effectiveDate: Int, currencyType: Int, table: CurrencyTable): CurrencyType
Construct a CurrencyType object.
Link copied to clipboard
Parse a raw currency string, assuming there are enough decimal places. This allows us to parse currency values into long integers without having a currency object because we assume that there are enough decimal places represented in the string. This lets us simply strip out decimal/comma characters are parse the raw integer result.